const app = new Vue({
  data: {
    msg: 'hello vue',
    awesome: true,
    type: 'A',
    loginType: 'username'
  },
  methods: {
    toggleLogin() {
      if (this.loginType === 'username') {
        this.loginType = 'email'
      } else {
        this.loginType = 'username'
      }
    }
  }
}).$mount('#app')
